package zjw.controller;


import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONUtil;

public class Httpclient {
	static void get() {
		String str = JSONUtil.toJsonStr(HttpUtil.get("http://localhost:88/api/shopInfo/getAllShopInfo/"));
		System.out.println(str);
	}

	static void post() {
//		ShopInfoParams param = new ShopInfoParams();
//		param.setPageNum(1);
//		param.setPageSize(10);
//		String str = JSONUtil.toJsonStr(HttpUtil.post("http://localhost:88/api/shopInfo/getAllShopInfo",JSONUtil.toJsonStr(param)));
//		System.out.println(str);
	}

	public static void main(String[] args) {
		post();
	}
}
